package com.aspose.cells;

import java.util.ArrayList;
import java.util.Iterator;

class zars extends zart {
   public String a;
   ArrayList b = new ArrayList();

   zars(String var1, String var2) {
      this.c = var1;
      if (var2 != null && var2.length() != 0) {
         this.a = var2;
      } else {
         this.a = "";
      }

   }

   void a(String[] var1) {
      var1[0] = var1[0] + "<" + this.c;

      Iterator var2;
      zakr var3;
      for(var2 = this.b.iterator(); var2.hasNext(); var1[0] = var1[0] + " " + var3.a + "=\"" + var3.b + "\"") {
         var3 = (zakr)var2.next();
      }

      var1[0] = var1[0] + ">";
      var2 = this.d.iterator();

      while(var2.hasNext()) {
         zart var4 = (zart)var2.next();
         var4.a(var1);
      }

      var1[0] = var1[0] + this.a + "</" + this.c + ">";
   }

   void a(zarx var1) throws Exception {
      var1.b = var1.b + "<" + this.c;

      Iterator var2;
      zakr var3;
      for(var2 = this.b.iterator(); var2.hasNext(); var1.b = var1.b + " " + var3.a + "=\"" + var3.b + "\"") {
         var3 = (zakr)var2.next();
      }

      var1.b = var1.b + ">";
      var2 = this.d.iterator();

      while(var2.hasNext()) {
         zart var4 = (zart)var2.next();
         var4.a(var1);
      }

      var1.b = var1.b + this.a + "</" + this.c + ">";
   }
}
